/*
* Author: honrun
*/
#ifndef DEVICESUART_H_
#define DEVICESUART_H_


#define USART1_DMA_READ_LENGTH  (256)
#define USART1_DMA_SEND_LENGTH  (256)
#define USART2_DMA_READ_LENGTH  (256)
#define USART2_DMA_SEND_LENGTH  (256)






extern uint8_t g_USART1ReadDMABuff[USART1_DMA_READ_LENGTH + 4];
extern uint8_t g_USART2ReadDMABuff[USART2_DMA_READ_LENGTH + 4];




void vUart1Init(void);
void vUart2Init(void);


void vUart1DMAInit(void);
void vUart2DMAInit(void);


void vUartSendDatas(USART_Module* USARTx, uint8_t *pucDatas, int32_t iLength);
void vUartSendStrings(USART_Module* USARTx, char *pcStrings);

void vUartDMASendDatas(USART_Module* USARTx, uint8_t *pucDatas, int32_t iLength);
void vUartDMASendStrings(USART_Module* USARTx, char *pcStrings);


#endif /* DEVICESUART_H_ */
